<!doctype html>
<html lang="en" xmlns:th="www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <link rel="icon" type="image/png" href="assets/img/favicon.ico">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

    <title>个人中心</title>

    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
    <meta name="viewport" content="width=device-width" />


    <!-- Bootstrap core CSS     -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" />

    <!-- Animation library for notifications   -->
    <link href="assets/css/animate.min.css" rel="stylesheet"/>

    <!--  Light Bootstrap Table core CSS    -->
    <link href="assets/css/light-bootstrap-dashboard.css" rel="stylesheet"/>


    <!--  CSS for Demo Purpose, don't include it in your project     -->
    <link href="assets/css/demo.css" rel="stylesheet" />


    <!--     Fonts and icons     -->
    <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
    <link href="assets/css/pe-icon-7-stroke.css" rel="stylesheet" />
    <style type="text/css">
        [v-cloak] {
            display: none;
        }
    </style>

</head>
<body>

<div class="wrapper">
<div class="sidebar" data-color="blue" data-image="assets/img/sidebar-5.jpg">
        <div class="sidebar-wrapper">
            <div class="logo">
                <a href="" class="simple-text">
                    个人中心
                </a>
            </div>
            <ul class="nav">
                <li>
                    <a th:href="@{personal}">
                        <i class="pe-7s-user"></i>
                        <p>基本信息</p>
                    </a>
                </li>
                <li>
                    <a th:href="@{bookinfo}">
                        <i class="pe-7s-note2"></i>
                        <p>我的预约</p>
                    </a>
                </li>
                <li>
                    <a th:href="@{feedback}">
                        <i class="pe-7s-news-paper"></i>
                        <p>我的反馈</p>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <div class="main-panel">
        <nav class="navbar navbar-default navbar-fixed">
            <div class="container-fluid">
                <div class="collapse navbar-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a th:href="@{/index}">
                                退出
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
        <div class="content">
            <div class="container-fluid">
                <div class="card">
                    <div class="header">
                        <h4 class="title">个人名单</h4>
                        <p class="category">= =</p>
                    </div>
                    <div class="content table-responsive table-full-width">
                        <table class="table table-hover table-striped">
                            <thead>
                            <th>编号</th>
                            <th>姓名</th>
                            <th>账号</th>
                            <th>密码</th>
                            <th>电话</th>
                            <th>邮箱</th>
                            <th>地址</th>
                            </thead>
                            <tbody>
                            <div>
                                <tr>
                                    <td v-cloak>{{user.id}}</td>
                                    <td v-cloak>{{user.name}}</td>
                                    <td v-cloak>{{user.account}}</td>
                                    <td v-cloak>{{user.password}}</td>
                                    <td v-cloak v-if="flag">{{user.phone}}</td>
                                    <td v-cloak>{{user.email}}</td>
                                    <td v-cloak>{{user.address}}</td>
                                    <td class="td-actions text-right">
                                        <a type="button" rel="tooltip" title="Edit Task" class="btn btn-info btn-simple btn-xs" th:href="@{/edituser}">
                                            <i class="fa fa-edit"></i>
                                        </a>
                                    </td>
                                </tr>
                            </div>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <footer class="footer">
            <div class="container-fluid">
                <p class="copyright pull-right">
                    Copyright ©2022 版权所有 湘公网安备1101080209224 湘 ICP证 100714号
                </p>
            </div>
        </footer>

    </div>
</div>


</body>

<!--   Core JS Files   -->
<script src="assets/js/jquery-1.10.2.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>

<!--  Checkbox, Radio & Switch Plugins -->
<script src="assets/js/bootstrap-checkbox-radio-switch.js"></script>

<!--  Charts Plugin -->
<script src="assets/js/chartist.min.js"></script>

<!--  Notifications Plugin    -->
<script src="assets/js/bootstrap-notify.js"></script>

<!--  Google Maps Plugin    -->
<!---<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>--->

<!-- Light Bootstrap Table Core javascript and methods for Demo purpose -->
<script src="assets/js/light-bootstrap-dashboard.js"></script>

<!-- Light Bootstrap Table DEMO methods, don't include it in your project! -->
<script src="assets/js/demo.js"></script>

<script type="text/javascript">
    $(document).ready(function(){

        demo.initChartist();

        $.notify({
            icon: 'pe-7s-gift',
            message: "欢迎来到<b>我的个人中心</b>"

        },{
            type: 'info',
            timer: 4000
        });

    });
</script>
<script src="https://lib.baomitu.com/vue/2.6.14/vue.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.26.0/axios.min.js"></script>
<script>
    var v = new Vue({
        el:".wrapper",
        data:{
            user:{},
            flag:true
        },
        mounted:function () {
          axios.get("personinit").then(res=>{
              this.user = res.data.data;
              if(this.user.phone==0){
                  this.flag = false;
              }
          })
        }
    })
</script>

</html>
